package com.cl.unipay4j.ali;

import com.cl.unipay4j.core.IPayConfig;
import lombok.Data;

/**
 * 支付宝支付配置
 *
 * @author  siashan
 * @since  v1.0.1
 **/
@Data
public class AliPayConfig implements IPayConfig {
    /**
     * 支付宝应用APPID
     */
    private String appid;
    /**
     * 商户公钥
     */
    private String merchantPrivateKey;
    /**
     * 支付宝私钥
     */
    private String alipayPublicKey;

    /**
     * 回调地址
     */
    private String notifyUrl;

    /**
     * 支付网关地址
     */
    private String gatewayUrl = "https://openapi.alipay.com/gateway.do";
    /**
     * 编码
     */
    private String charset = "utf-8";
    /**
     * 签名格式
     */
    private String signType = "RSA2";
    /**
     * 报文传输格式
     */
    private String format = "json";
    /**
     *是否使用沙箱环境
     */
    private boolean useSandBox = false;

    private String returnUrl;

    /**
     * API证书存放地址
     */
    private String certPath;
}
